The Accordion Pane Component > FAccordionPane.showScrollBar()

 

FAccordionPane.showScrollBar()

Availability

Flash Player 6.

Usage

myAccordion_acp.showScrollBar (show)

Parameters

show A Boolean value indicating whether a vertical scrollbar should be displayed within content areas for sections.

Returns


Nothing

Description

This method specifies whether to show a vertical scrollbar on content sections that are too tall (true) or not (false). If the content area size is less than 35 pixels high the scrollbar would be to large to show so the component does not show it. If set to true, the scrollbar will only appear if it is needed.

 

Example

The accordion_example2.fla example file contains an example of using this method.

The following code adds four sections to the component, and turns off scrollbars.

	var sections = ["Section 1","Section 2","Section 3","Section 4"];
	myAccordionPane_acp.setDataProvider(sections);
	myAccordionPane_acp.showScrollBar(false);

See also

FAccordionPane.getContentSize()